/**
 * FileFind - ftp/shares indexing and search php engine
 * Module: common-persist
 * Description: Common persistence interfaces
 * Copyright (c) 2003-2010 Rage Steel, www.gt2.ru
 */
package ru.ffind.persist.service;

import java.util.List;

import ru.ffind.common.model.Host;

/**
 * Interface for manipulations of Hosts.
 * 
 * @author Rage Steel
 */
public interface HostService {
	
	/**
	 * Return list of all hosts.
	 * 
	 * @return
	 */
	List<? extends Host> findAll();
	
	/**
	 * Return host by name or null.
	 * 
	 * @return
	 */
	Host findByNameOrNull(String hostName);
}
